
define([
    "jquery",
    "IO",
    "UPLOADUI",
    "UPLOAD",
    "jqueryUI",
    "bootbox",
    //"text!/js/biz/keb/activity/definebt.html"
], function ($, IO, upui, up, jui, bootbox, definebt) {

    //点击创建活动
    $("#btnSave").click(function(){

        var activity_name=$('.row-1-input').val()==""?"0":$('.row-1-input').val();
        var activity_time=$('.row-2-input').val()==""?"0":$('.row-2-input').val();
        var activity_group=$('.row-3-input').val()==""?"0":$('.row-3-input').val();
        var activity_coach=$('.row-5-input').val()==""?"0":$('.row-5-input').val();
        var params={};
        params.activity_name=activity_name;
        params.activity_time=activity_time;
        params.activity_group=activity_group;
        params.activity_coach=activity_coach;

        IO.post("/shapan/api/activity",params,function(d){

            //localStorage.setItem("activity_mid", d.data);
            alert(d.msg);
        })
    })
});